package cn.com.homeyoda.aimate.aihealth.ui.my.family.recommend;

import androidx.annotation.NonNull;
import androidx.annotation.Nullable;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;

import java.util.List;

import cn.com.homeyoda.aimate.aihealth.R;
import cn.com.homeyoda.aimate.aihealth.bean.MemberBean;

public class RecommendAdapter extends BaseQuickAdapter<MemberBean, BaseViewHolder> {

    public RecommendAdapter(int layoutResId, @Nullable List<MemberBean> data) {
        super(layoutResId, data);
    }

    @Override
    public void onBindViewHolder(BaseViewHolder holder, int position) {
        MemberBean item = getData().get(position);
        holder.setText(R.id.tv_member_name, item.getName());
        holder.setImageResource(R.id.iv_member_avatar, item.getAvatar());
        holder.setText(R.id.tv_member_gender, item.getGender());
        holder.setText(R.id.tv_member_age, item.getAge());
        holder.addOnClickListener(R.id.btn_send_invitation);
    }

    @Override
    protected void convert(@NonNull BaseViewHolder helper, MemberBean item) {
    }

}
